package io.shqyang.done.slice.main.quick;

import ohos.agp.components.AttrSet;
import ohos.agp.components.Component;
import ohos.agp.components.Text;
import ohos.app.Context;

public class QuickItem extends Component {
    public QuickItem(Context context) {
        super(context);
    }

    public QuickItem(Context context, AttrSet attrSet) {
        super(context, attrSet);
    }

    public QuickItem(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);
    }

    public void setText(int id, String text) {
        Text t = (Text) findComponentById(id);
        t.setText(text);
    }

    public void setText(int id, int stringId) {
        Text t = (Text) findComponentById(id);
        t.setText(stringId);
    }
}
